package cn.dnf.controller;

import cn.dnf.domain.Relation;
import cn.dnf.service.IRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/relation")
public class RelationController {
    @Autowired
    private IRelationService relationService;
    @PostMapping("/add")
    public void add(Relation relation){
        relationService.add(relation);
    }
}
